package syntaxTree.stm;

import syntaxTree.exp.*;

public class stmWhile extends stm{				//-> while(exp) statement
	exp e;
	stm s;
	public stmWhile(exp e, stm s)
	{
		this.e = e;
		this.s = s;
		this.preS = new stmInit();
	}
	public stmWhile(stm s1,exp e, stm s)
	{
		this.preS = s1;
		this.e = e;
		this.s = s;
	}
	public String toString()
	{
		return ('('+"while("+e.toString()+")"+s.toString()+";)");
	}
	public String toC()
	{
		return ('('+"while("+e.toC()+")"+s.toC()+";)");
	}
}
